package ebj.common.generic;

/**
 * 
 * <p>功能说明:泛型类示例--SingleTuple</p>
 * @author zhoushineyoung@hotmail.com
 * @time 2016年9月23日 上午10:58:27
 * @param <T>
 */
public class GenericTypeTwoTuple<T, S> extends GenericType<T> {
	S memberS;
	public GenericTypeTwoTuple(T memberT, S memberS) {
		super(memberT);
		this.memberS = memberS;
	}
	
	public S getMemberS() {
		return this.memberS;
	}
	
	void showTpye() {
		System.err.println("Type of T is [" + this.member.getClass() + "]; "
				+ "Type of S is [" + this.memberS.getClass() + "].");
	}
}

class Client2 {
	public static void main(String[] args) {
		GenericTypeTwoTuple<Integer, String> genericType01 = new GenericTypeTwoTuple<Integer, String>(66, "顺发");
		genericType01.showTpye();
		System.out.println(genericType01.getMemberT());
		System.out.println(genericType01.getMemberS());
	}
}
